package parttern.absfactory;

public class ShapeFactory extends AbsFactory {

    @Override
    public IShape getShape(String shapeName) {
        switch (shapeName) {
            case "CIRCLE":
                return new CircleShape();
            case "SQUARE":
                return new SquareShape();
        }
        return null;
    }

    @Override
    public IColor getColor(String colorName) {
        return null;
    }
}
